﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Specialist/SpecialistMaster.master" CodeBehind="ViewCurrentWeekConsultations.aspx.cs" Inherits="MyHealthOnline.Specialist.CurrentWeek" %>
<%@ Register Src="~/Specialist/Consultations.ascx" TagPrefix="uc" TagName="Consultations" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    Current Week
    <br />

    <asp:UpdatePanel ID="updSearch" runat="server">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnSearch" EventName="Click" />
        </Triggers>
        <ContentTemplate>
    
            Search for a patient: 
            <asp:TextBox ID="txtSearchPatient" runat="server"></asp:TextBox>
            <asp:Button ID="btnSearch" runat="server" Text="Search" 
                onclick="btnSearch_Click" />
            <br />
    
            <br />
            Current week patients:
            <uc:Consultations ID="ucCurrentConsultations" runat="server"></uc:Consultations>
   
            <br />
            <asp:UpdatePanel ID="updLastWeek" runat="server">
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="btnPrev" EventName="Click" />
                    <asp:AsyncPostBackTrigger ControlID="btnNext" EventName="Click" />
                </Triggers>
                <ContentTemplate>
    
                    <br />
                    Last weeks patients:
                    <br />
                    Week
                    <asp:Button ID="btnPrev" Text="<" runat="server" onclick="btnPrev_Click" />
                    <asp:Label ID="lblWeekNo" Text="1" runat="server"></asp:Label>
                    <asp:Button ID="btnNext" Text=">" runat="server" onclick="btnNext_Click" /> &nbsp;
                    From <asp:Label ID="lblFrom" runat="server"></asp:Label>
                    To <asp:Label ID="lblTo" runat="server"></asp:Label>
                    <br />
    
                    <uc:Consultations ID="ucPastConsultations" runat="server"></uc:Consultations>
                </ContentTemplate>
            </asp:UpdatePanel >
        </ContentTemplate>
    </asp:UpdatePanel >
    
    <br />

</asp:Content>